package cn.itsource.controller.html;

import cn.itsource.domain.BlogFriendAddress;
import cn.itsource.mapper.FriendAddressMapper;
import cn.itsource.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/html/blogFriendAddress")
public class HtmlBlogFriendController {
    @Autowired
    private FriendAddressMapper mapper;
    @GetMapping("/list")
    public AjaxResult list(){
        List<BlogFriendAddress> blogFriendAddresses = mapper.selectAll();
        return AjaxResult.Success(blogFriendAddresses);

    }

}
